package com.zk.iotgateway.dao;

import com.zk.iotgateway.domain.param.IotDispatchDO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * ${DESCRIPTION}
 *
 * @author:mn.m
 * @create 2019-05-05 上午 09:00
 **/
@Mapper
public interface IotDispatchMapper {

    int deleteByPrimaryKey(String id);

    int deleteByPort(String port);

    int insert(IotDispatchDO record);

    int insertSelective(IotDispatchDO record);

    IotDispatchDO selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(IotDispatchDO record);

    int updateByPrimaryKey(IotDispatchDO record);

    List<IotDispatchDO> listByPort(String port);

    List<IotDispatchDO> listvalidByPort(String port);
    List<Map<String,String>> listDispatch();
}
